<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D</title>
    <style>
<!--        yes-->
        html{
            perspective: 800px;
        }
        .box{
            width: 300px;
            height: 300px;
            position: relative;
            margin: 200px auto;
            animation: xxx 5s infinite linear;
            transform-style: preserve-3d;
        }
        .box:hover{
            animation-play-state: paused;
        }
        li{
            list-style: none;
            position: absolute;
            width: 300px;
            height: 300px;
        }
        img{
            width: 300px;
            height: 300px;
            opacity: 0.7;
        }
        .box li:nth-child(1){
            transform: rotateX(90deg) translateZ(150px);
        }
        .box li:nth-child(2){
            transform: rotateX(-90deg) translateZ(150px);
        }
        .box li:nth-child(3){
            transform: rotateY(90deg) translateZ(150px);
        }
        .box li:nth-child(4){
            transform: rotateY(-90deg) translateZ(150px);
        }
        .box li:nth-child(5){
            transform: rotateY(180deg) translateZ(150px);
        }
        .box li:nth-child(6){
            transform: rotateY(0deg) translateZ(150px);
        }
        @keyframes xxx {
            0%{
                transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
            }
            100%{
                transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <ul class="box">
        <li>
            <img src="./图片/1.gif">
        </li>
        <li>
            <img src="./图片/2.jpg">
        </li>
        <li>
            <img src="./图片/3.jpg">
        </li>
        <li>
            <img src="./图片/4.jpg">
        </li>
        <li>
            <img src="./图片/5.jpg">
        </li>
        <li>
            <img src="./图片/6.gif">
        </li>
    </ul>
</body>
</html>